import axios from "@/libs/api.request"

export const getAdminList = (data) => {
    return axios.request({
        url: "/user/user",
        params: data,
        method: "get"
    });
}

export const addPerson = (data) => {
    return axios.request({
        url: "/user/user",
        data: data,
        method: "post"
    });
}

export const roleDetail = (data) => {
    return axios.request({
        url: "/user/role/user_roles",
        params: data,
        method: "get"
    });
}

export const roleDetailAll = (data) => {
    return axios.request({
        url: "/user/role",
        params: data,
        method: "get"
    });
}


export const allocationRole = (data) => {
    return axios.request({
        url: "/user/link/for_user_add_roles",
        data: data,
        method: "post"
    });
}

export const delRole = (data) => {
    return axios.request({
        url: "/user/link/delete_role_user_link",
        params: data,
        method: "get"
    });
}




